import _http from '@/utils/http'

export default {
    getTableData(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/shop/channel/qry/list',
            apiName: '平台列表',
        }, params, loading, headers)
    },
    apiUserAdd(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/shop/channel/add',
            apiName: '新增平台',
        }, params, loading, headers)
    },
    apiUserModify(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/shop/channel/modify',
            apiName: '修改平台配置',
        }, params, loading, headers)
    },
    qryList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/qry/list',
            apiName: '第三方平台列表',
        }, params, loading, headers)
    },
    shopList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/shop/qry/list',
            apiName: '商户列表',
        }, params, loading, headers)
    },
}
